{template 'default','headerclass'}
<div id="wrap">
    <div id="top"></div>
    <div id="container" class="clearfix">
        {template 'default','member_left'}
        <div id="main" class="edufe_fl">
            {if $self}
            <div class="title">个人信息修改</div>
            {/if}
            <div class="con">
                <div class="info_edit">
                    <form name="infoform" action="{URL}" method="post" onsubmit="return r_submit(this);">
                        <input type="hidden" name="email" value="{$info['email']}"/>
                        <div class="hd">基本信息{if $self}<a href="javascript:void(0)" onclick="r_submit(document.infoform)" class="sv">保存</a>{/if}</div>
                        <div class="ct">
                            <div class="tp_01">
                                <span class="note">头像：</span>
                                <span>
                                    {if $self}
                                    {form::image("photo", "photo",$info['photo'])}
                                    {else}
                                    <img src="{thumb($info['photo'])}" width="100" height="100"/>
                                    {/if}
                                </span>
                            </div>
                            <div class="tp_01">
                                <span class="note">姓名：</span> 
                                <span>
                                    {if $self}
                                    <input type="text" class="txt w100" name="truename" value="{$info['truename']}"/>
                                    {else}
                                    {$info['truename']}
                                    {/if}
                                </span>
                                <a href="member.php?action=add_message&touser={$info['mid']}">给TA发消息</a>
                            </div>
                            <div class="tp_01">
                                <span class="note">生日：</span>
                                <span>
                                    {if $self}
                                    <input type="text" class="txt w100" name="birthday" value="{$info['birthday']}"/> (如：2012-12-20)
                                    {else}
                                    {$info['birthday']}
                                    {/if}
                                </span>
                            </div>
                            <div class="tp_01">
                                <span class="note">兴趣：</span>
                                <span>
                                    {if $self}
                                    <input type="text" class="txt w100" name="interest" value="{$info['interest']}"/>
                                    {else}
                                    {$info['interest']}
                                    {/if}
                                </span>
                            </div>
                            {if $self}
                            <div class="tp_01">
                                <span class="note">当前密码：</span>
                                <span><input type="password" class="txt w100" name="oldpassword" /></span>
                            </div>
                            <div class="tp_01">
                                <span class="note">新密码：</span>
                                <span><input type="password" class="txt w100" name="password" /></span>
                            </div>
                            <div class="tp_01">
                                <span class="note">确认密码：</span>
                                <span><input type="password" class="txt w100" name="repassword" /></span>
                            </div>
                            {/if}
                            <div class="tp_01">
                                <span class="note">年级班级：</span>
                                <span>
                                    {if $self}
                                    {form::type_level_select('types','types','major',$info['class'])}
                                    {else}
                                    {$major_types[$info['major']]['tname']} / {$major_types[$info['class']]['tname']}
                                    {/if}
                                </span>
                                (系统会根据此选项帮您寻找您的同学)
                            </div>
                            {if $self}
                            <div class="tp_01">
                                <span class="note"></span>
                                <span><input type="submit" value="修改" /></span>
                            </div>
                            {/if}
                        </div>
                        <div class="hd">联系方式{if $self}<a href="javascript:void(0)" onclick="r_submit(document.infoform)" class="sv">保存</a>{/if}</div>
                        <div class="ct">
                            <div class="tp_01">
                                <span class="note">联系电话：</span>
                                <span>
                                    {if $self}
                                    <input type="text" name="tel" class="txt w100" value="{$info['tel']}" />
                                    {else}
                                    {$info['tel']}
                                    {/if}
                                </span>
                            </div>
                            <div class="tp_01">
                                <span class="note">联系地址：</span>
                                <span>
                                    {if $self}
                                    <input type="text" name="addr" class="txt w100" value="{$info['addr']}" />
                                    {else}
                                    {$info['tel']}
                                    {/if}
                                </span>
                            </div>
                            <div class="tp_01">
                                <span class="note">Email：</span>
                                <span>
                                    {$info['email']}
                                </span>
                            </div>
                            <div class="tp_01">
                                <span class="note">工作单位：</span>
                                <span>
                                    {if $self}
                                    <input type="text" name="department" class="txt w100" value="{$info['department']}" />
                                    {else}
                                    {$info['department']}
                                    {/if}
                                </span>
                            </div>
                            {if $self}
                            <div class="tp_01">
                                <span class="note"></span>
                                <span><input type="submit" value="修改" /></span>
                            </div>
                            {/if}
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
    {template 'default','footer'}